import QtQuick
import QtQuick3D
import QtQuick3D.Helpers
import "../gameToolKit"


DefaultGameInstance{
    id:root
    onGameStarted: {
        console.log("gameStarted!")
        var actor = context.spawnActor(cubeActor,scene)
        controller.controlledActor = actor
    }

    Component{
        id:cubeActor
        CubeActor{

        }
    }

    //控制器
    MyController{
        id:controller

        inputDevice: mainView.inputDevice
    }

    //场景
    scene:Scene{


    }

}
